<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 数据处理
      const str = "css,html,js";

      function strToArr(str) {
        return str.split(",");
      }
      console.log(strToArr(str)); // ["css", "html", "js"];
    </script>
  </body>
</html>
